//Step 1: Image Acquisition : acquire some pairs of left and right view images as the input of  the Stereo Calibration(Step 2);
//This prog is the  preliminary  of step 1:acquire image from single camera.
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
int g_cnt=0;
int main(int argc,char* argv[])
{
  //1:Indetify the Camera
  CvCapture capture = NULL;
  if(argc==1)
    capture = cvCreateCameraCapture(0);
  else
    capture = cvCreateCameraCapture( argv[1] );
  assert( capture != NULL);
  //2:Query and Display the frame captured by the camera
  cvNamedWindows("LeftCamera")
  IplImage *L_frame
  while(1)
  {
    L_frame=cvQueryFrame(capture);
    cvShowImage("LeftCamera",L_frame);
    char c=cvWaitKey(33);
    if(c==27) break;
    if(c=='l')  
    
  }
  
  
}
